package com.bridge;

//手机品牌抽象类
public interface Brand {

    public void open();

    public void call();

    public void close();

}

class Xiaomi implements Brand {

    @Override
    public void open() {
        System.out.println("小米手机开机了...");
    }

    @Override
    public void call() {
        System.out.println("小米手机打电话 ... ");
    }

    @Override
    public void close() {
        System.out.println("小米手机关机了 ...");
    }
}

class Vivo implements Brand{

    @Override
    public void open() {
        System.out.println("Vivo手机开机了 ...");
    }

    @Override
    public void call() {
        System.out.println("Vivo手机打电话 ...");
    }

    @Override
    public void close() {
        System.out.println("Vivo手机关机了 ...");
    }
}
